package org.datamining.guha.model.literal;

import org.datamining.guha.model.Formatter;

public class LiteralFormatter implements Formatter<Literal> {

	/**
	 * @return String [neg]symbol
	 * TODO clean up this mess...
	 */
	public String format(Literal literal) {
		String neg = "+";
        //String neg = "";
        if (literal.isNegative()) {
            /* (char)172 is used to represent symbol of negation */
            //neg = String.valueOf((char)172);
            //neg = "not";
            neg = "-";
        }
        char xx = (char)(literal.getSymbol());
        return neg + String.valueOf(xx);
        //return neg + "" + symbol;
	}

}
